package com.qqtech.qquan.community.dao;

import java.util.List;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Repository;

import com.qqtech.core.frame.dao.BaseDaoImpl;
import com.qqtech.qquan.community.model.*;

@Repository
public class CommunityJoinDaoImpl extends BaseDaoImpl<CommunityJoin> implements CommunityJoinDao {
	public static final Logger log = LoggerFactory.getLogger(CommunityJoinDaoImpl.class);

	@Override
	public List<Integer> queryMyCommuntiyIds(Integer userId) {
		return sqlSessionTemplate.selectList(getSqlName("queryMyCommunityIds"), userId);
	}

	@Override
	public List<Integer> queryCommuntiyIds(CommunityJoinQuery communityJoinQuery) {
		return sqlSessionTemplate.selectList(getSqlName("select_communityIds"), communityJoinQuery);
	}

	@Override
	public List<CommunityJoinVo> queryLeftBase(CommunityJoinQuery communityJoinQuery) {
		return sqlSessionTemplate.selectList(getSqlName("selectLeftBase"), communityJoinQuery);
	}
	
}
